package chapter12.section4;
/*程序12-6a：构造一个可串行化的类*/
import java.io.Serializable;
public class Transaction implements Serializable{
	private static final long serialVersionUID = 2088823202181310812L;
	private String id;
	private String type;
	private int amount;
	public Transaction(String type, String id, int amount) {
		super();
		this.type = type;
		this.id = id;
		this.amount = amount;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public int getAmount() {
		return amount;
	}
	public void setAmount(int amount) {
		this.amount = amount;
	}
}